package com.xx.jicheng.solr;

import java.io.Reader;

import org.apache.lucene.analysis.util.CharTokenizer;
import org.apache.lucene.util.Version;

public class BrandTokenizer extends CharTokenizer {

	public BrandTokenizer(Version matchVersion, AttributeFactory factory, Reader input) {
		super(matchVersion, factory, input);
	}

	public BrandTokenizer(Version matchVersion, Reader input) {
		super(matchVersion, input);
	}

	@Override
	protected boolean isTokenChar(int c) {
		if(c == '(' || c== ')' || c== '（' || c== '）'){
			return true;
		}
		return false;
	}

}
